package com.lp.article.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LikesMapper {

    //获取该文章的所有点赞用户
    List<Long> selectUserIdAllByArticleId(@Param("articleId") Long articleId);

    //点赞(新增信息)
    void add(@Param("articleId") Long articleId,
             @Param("userId") Long userId);

    //取消点赞(删除信息)
    void remove(@Param("articleId") Long articleId,
             @Param("userId") Long userId);

}
